package ar.edu.unq.leezsi.html;

import ar.edu.unq.leezsi.requestcycle.HTTPAction;

public class ComponentAdaptor {

	private final Component<?> component;

	public ComponentAdaptor(Component<?> component) {
		this.component = component;
	}

	public void executeAction(HTTPAction httpAction) {
		this.getComponent().executeAction(httpAction);
	}

	protected Component<?> getComponent() {
		return this.component;
	}

	public String getProperty(String property) {
		return this.getComponent().getProperty(property);
	}

	public String getProperty(String property, String defaultValue) {
		return this.getComponent().getProperty(property, defaultValue);
	}

}
